function initPreload(a) {
    if (location.hash && location.hash.match(/[\?#&]wd=([^&]*)/) && !location.search.match(/[\?#&]isidx=([^&]*)/)) {
        location.href = location.protocol + "//" + location.host + location.pathname + "?isidx=1" + location.search.replace(/^\?/, "&") + location.hash
    }
    function b() {
        var f = location.href.match(/#+(.*)$/);
        return f ? f[1] : ""
    }

    $(window).bind("hashchange", function () {
        var f = b();
        if (/wd=/.test(f)) {
            location.replace("/s?" + f)
        }
    });
    var d = {index_form: "#form1", index_kw: "#kw1"};
    if (a) {
        $.extend(d, a)
    }
    index_form = $(d.index_form);
    index_kw = $(d.index_kw);
    var e = $.ajax({
        dataType: "script",
        cache: true,
        url: "http://s1.bdstatic.com/r/www/cache/static/sug/js/bdsug_21bb704a.js"
    });
    e.done(function () {
        var f = bds.se.sug({form: index_form[0], ipt: index_kw[0], cbname: "bdsugindexcb", submission: c})
    });
    function c() {
        if (!$.trim(index_kw.val())) {
            return false
        }
        return true
    }
};